package Card;

public class Poker {
    private String suit;  //花色
    private int rank; //数字
    private static final String[] suits=new String[]{"♥","♣","♠","◆"};  //总共有几个花色

    public Poker() {
    }
    public static String[] getSuits() {
        return suits;
    }
    public Poker(String suit, int rank) {
        this.suit = suit;
        this.rank = rank;
    }
    @Override  //只要是输出引用类型的数据就需要重写toString方法，不然只会打印处地址，如果是基本数据类型，那么就能直接打印出数据
    public String toString() {
        return  '{'+ suit +
                ","+ rank +
                '}';
    }
}
